
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>5.设置 · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="6-words.html" />
    
    
    <link rel="prev" href="4-menu.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" >
            
                <span>
            
                    
                    入门
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1.1" data-path="../">
            
                <a href="../">
            
                    
                    0.开始
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.1.2" data-path="1-install.html">
            
                <a href="1-install.html">
            
                    
                    1.安装
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.1.3" data-path="2-init.html">
            
                <a href="2-init.html">
            
                    
                    2.创建一本书
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.1.4" data-path="3-directory.html">
            
                <a href="3-directory.html">
            
                    
                    3.目录结构
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.2" >
            
                <span>
            
                    
                    基础
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="4-menu.html">
            
                <a href="4-menu.html">
            
                    
                    4.菜单
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.2.2" data-path="5-set.html">
            
                <a href="5-set.html">
            
                    
                    5.设置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="6-words.html">
            
                <a href="6-words.html">
            
                    
                    6.词汇表
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.4" data-path="7-langs.html">
            
                <a href="7-langs.html">
            
                    
                    7.多语言
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.5" data-path="8-markdown.html">
            
                <a href="8-markdown.html">
            
                    
                    8.markdown
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.6" data-path="9-asciidoc.html">
            
                <a href="9-asciidoc.html">
            
                    
                    9.AsciiDoc
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.7" data-path="10-E-book.html">
            
                <a href="10-E-book.html">
            
                    
                    10.生成电子书
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" >
            
                <span>
            
                    
                    异常处理
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="error.html">
            
                <a href="error.html">
            
                    
                    异常处理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="support.html">
            
                <a href="support.html">
            
                    
                    赞助/支持
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >5.设置</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="&#x914D;&#x7F6E;">&#x914D;&#x7F6E;</h1>
<p>gitbook &#x5141;&#x8BB8;&#x4F7F;&#x7528;&#x7075;&#x6D3B;&#x7684;&#x914D;&#x7F6E;&#x81EA;&#x5B9A;&#x4E49;&#x4E66;&#x7C4D;&#x548C;&#x6587;&#x6863;&#x3002;<br>&#x8FD9;&#x4E9B;&#x9009;&#x9879;&#x5728; <code>book.json</code> &#x6587;&#x4EF6;&#x4E2D;&#x6307;&#x5B9A;&#x3002;<br>&#x5BF9;&#x4E8E;&#x4E0D;&#x719F;&#x6089; JSON &#x8BED;&#x6CD5;&#x7684;&#x4F19;&#x4F34;&#xFF0C;&#x53EF;&#x4EE5;&#x4F7F;&#x7528; <a href="https://jsonlint.com/" target="_blank">JSONlint</a> &#x7B49;&#x5DE5;&#x5177;&#x9A8C;&#x8BC1;&#x8BED;&#x6CD5;&#x3002;  </p>
<h2 id="&#x5E38;&#x89C4;&#x8BBE;&#x7F6E;">&#x5E38;&#x89C4;&#x8BBE;&#x7F6E;</h2>
<table>
<thead>
<tr>
<th style="text-align:center">&#x53D8;&#x91CF;</th>
<th style="text-align:center">&#x8BF4;&#x660E;</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:center">root</td>
<td style="text-align:center">&#x5305;&#x542B;&#x6240;&#x6709;&#x56FE;&#x4E66;&#x6587;&#x4EF6;&#x7684;&#x8DDF;&#x6587;&#x4EF6;&#x5939;&#x7684;&#x8DEF;&#x5F84;&#xFF0C;&#x9664;&#x4E86;<code>book.json</code></td>
</tr>
<tr>
<td style="text-align:center">structure</td>
<td style="text-align:center">&#x6307;&#x5B9A;&#x81EA;&#x8FF0;&#xFF0C;&#x6458;&#x8981;&#xFF0C;&#x8BCD;&#x6C47;&#x8868;&#x7B49;&#x8DEF;&#x5F84;&#x3002;&#x53C2;&#x89C1;&#x7ED3;&#x6784;&#x6BB5;&#x843D;</td>
</tr>
<tr>
<td style="text-align:center">title</td>
<td style="text-align:center">&#x4E66;&#x7684;&#x6807;&#x9898;&#xFF0C;&#x9ED8;&#x8BA4;&#x503C;&#x4ECE; README &#x4E2D;&#x63D0;&#x53D6;&#x3002;&#x5728; gitbook.com &#x4E0A;&#xFF0C;&#x6B64;&#x5B57;&#x6BB5;&#x5DF2;&#x9884;&#x586B;&#x3002;</td>
</tr>
<tr>
<td style="text-align:center">description</td>
<td style="text-align:center">&#x4F60;&#x7684;&#x56FE;&#x4E66;&#x8BF4;&#x660E;&#xFF0C;&#x9ED8;&#x8BA4;&#x503C;&#x4ECE;&#x81EA;&#x8FF0;&#x6587;&#x4EF6;&#x4E2D;&#x63D0;&#x53D6;&#x3002;&#x5728; gitbook.com &#x4E0A;&#xFF0C;&#x6B64;&#x5B57;&#x6BB5;&#x5DF2;&#x9884;&#x586B;&#x3002;</td>
</tr>
<tr>
<td style="text-align:center">author</td>
<td style="text-align:center">&#x4F5C;&#x8005;&#x59D3;&#x540D;&#x3002;&#x5728; gitbook.com &#x4E0A;&#xFF0C;&#x6B64;&#x5B57;&#x6BB5;&#x5DF2;&#x9884;&#x586B;&#x3002;</td>
</tr>
<tr>
<td style="text-align:center">isbn</td>
<td style="text-align:center">&#x6570;&#x7684;&#x56FD;&#x9645;&#x7801; ISBN</td>
</tr>
<tr>
<td style="text-align:center">language</td>
<td style="text-align:center">&#x8BED;&#x8A00; ISO &#x89C4;&#x8303;&#x7684;&#x4E66;&#x7684;&#x8BED;&#x8A00;&#xFF0C;&#x9ED8;&#x8BA4;&#x503C;&#x662F; <code>en</code></td>
</tr>
<tr>
<td style="text-align:center">direction</td>
<td style="text-align:center">&#x6587;&#x672C;&#x7684;&#x65B9;&#x5411;&#x3002;&#x53EF;&#x4EE5;&#x662F; trl &#x6216; ltr &#xFF0C;&#x9ED8;&#x8BA4;&#x503C;&#x53D6;&#x51B3;&#x4E8E; language &#x7684;&#x503C;&#x3002;</td>
</tr>
<tr>
<td style="text-align:center">gitbook</td>
<td style="text-align:center">gitbook &#x7684;&#x7248;&#x672C;&#x3002;&#x4F7F;&#x7528; SenVer &#x89C4;&#x8303;&#x5E76;&#x63A5;&#x53D7;&#x8BF8;&#x5982; <code>&quot;&gt; = 3.0.0&quot;</code> &#x7684;&#x6761;&#x4EF6;</td>
</tr>
</tbody>
</table>
<h2 id="&#x63D2;&#x4EF6;">&#x63D2;&#x4EF6;</h2>
<p>&#x63D2;&#x4EF6;&#x53CA;&#x5176;&#x914D;&#x7F6E;&#x5728; <code>gitbook.json</code> &#x4E2D;&#x6307;&#x5B9A;&#x3002;<br>&#x4ECE; 3.0.0 &#x7248;&#x672C;&#x5F00;&#x59CB;&#xFF0C; gitbook &#x53EF;&#x4EE5;&#x4F7F;&#x7528;&#x4E3B;&#x9898;&#x3002;  </p>
<table>
<thead>
<tr>
<th style="text-align:center">&#x53D8;&#x91CF;</th>
<th style="text-align:center">&#x8BF4;&#x660E;</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:center">plugins</td>
<td style="text-align:center">&#x8981;&#x52A0;&#x8F7D;&#x7684;&#x63D2;&#x4EF6;&#x5217;&#x8868;</td>
</tr>
<tr>
<td style="text-align:center">pluginsCongfig</td>
<td style="text-align:center">&#x63D2;&#x4EF6;&#x914D;&#x7F6E;</td>
</tr>
</tbody>
</table>
<h2 id="&#x7ED3;&#x6784;&#x4F53;">&#x7ED3;&#x6784;&#x4F53;</h2>
<p>&#x9664;&#x4E86; root &#x53D8;&#x91CF;&#xFF0C;&#x4F60;&#x53EF;&#x4EE5;&#x544A;&#x8BC9; gitbook readme&#xFF0C;summary&#xFF0C;glossary&#xFF0C;language &#x7684;&#x6587;&#x4EF6;&#x540D;&#xFF08;&#x800C;&#x4E0D;&#x662F;&#x4F7F;&#x7528;&#x9ED8;&#x8BA4;&#x540D;&#x79F0;&#xFF0C;&#x5982; README.md&#xFF09;&#x3002;<br>&#x8FD9;&#x4E9B;&#x6587;&#x4EF6;&#x5FC5;&#x987B;&#x5728;&#x4F60;&#x7684;&#x4E66;&#x6839;&#xFF08;&#x6216;&#x6BCF;&#x4E2A;&#x8BED;&#x8A00;&#x4E66;&#x7684;&#x6839;&#xFF09;&#x3002;<br>&#x4E0D;&#x63A5;&#x53D7;&#x8BF8;&#x5982; <code>dir/MY_README.md</code> &#x4E4B;&#x7C7B;&#x7684;&#x8DEF;&#x5F84;&#x3002;  </p>
<table>
<thead>
<tr>
<th style="text-align:center">&#x53D8;&#x91CF;</th>
<th style="text-align:center">&#x8BF4;&#x660E;</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:center">structure.readme</td>
<td style="text-align:center">&#x81EA;&#x8FF0;&#x6587;&#x4EF6;&#x540D;&#xFF08;&#x9ED8;&#x8BA4;&#x4E3A;&#x201C;EADME.md&#x201D;&#xFF09;</td>
</tr>
<tr>
<td style="text-align:center">structure.summary</td>
<td style="text-align:center">&#x6458;&#x8981;&#x6587;&#x4EF6;&#x540D;&#xFF08;&#x9ED8;&#x8BA4;&#x4E3A;&#x201C;SUMMARY.md&#x201D;&#xFF09;</td>
</tr>
<tr>
<td style="text-align:center">structure.glossary</td>
<td style="text-align:center">&#x8BCD;&#x6C47;&#x8868;&#x6587;&#x4EF6;&#x540D;&#xFF08;&#x9ED8;&#x8BA4;&#x4E3A;&#x201C;GLOSSARY.md&#x201D;&#xFF09;</td>
</tr>
<tr>
<td style="text-align:center">structure.languages</td>
<td style="text-align:center">&#x8BED;&#x8A00;&#x6587;&#x4EF6;&#x540D;&#xFF08;&#x9ED8;&#x8BA4;&#x4E3A;&#x201C;LANGS.md&#x201D;&#xFF09;</td>
</tr>
</tbody>
</table>
<h2 id="pdf&#x9009;&#x9879;">PDF&#x9009;&#x9879;</h2>
<p>PDF&#x8F93;&#x51FA;&#x53EF;&#x4EE5;&#x4F7F;&#x7528; <code>book.json</code> &#x4E2D;&#x7684;&#x4E00;&#x7EC4;&#x9009;&#x9879;&#x6765;&#x5B9A;&#x5236;&#xFF1A;  </p>
<table>
<thead>
<tr>
<th style="text-align:center">&#x53D8;&#x91CF;</th>
<th style="text-align:center">&#x8BF4;&#x660E;</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:center">pdf.pageNumbers</td>
<td style="text-align:center">&#x5C06;&#x9875;&#x7801;&#x6DFB;&#x52A0;&#x5230;&#x6CA1;&#x4E2A;&#x9875;&#x9762;&#x7684;&#x5E95;&#x90E8;&#xFF08;&#x9ED8;&#x8BA4;&#x4E3A;&#x201C;true&#x201D;&#xFF09;</td>
</tr>
<tr>
<td style="text-align:center">pdf.fontSize</td>
<td style="text-align:center">&#x57FA;&#x672C;&#x5B57;&#x4F53;&#x5927;&#x5C0F;&#xFF08;&#x9ED8;&#x8BA4;&#x4E3A;12&#xFF09;</td>
</tr>
<tr>
<td style="text-align:center">pdf.fontFamily</td>
<td style="text-align:center">&#x57FA;&#x672C;&#x5B57;&#x4F53;&#x7CFB;&#x5217;&#xFF08;&#x9ED8;&#x8BA4;&#x4E3A; Arial&#xFF09;</td>
</tr>
<tr>
<td style="text-align:center">pdf.paperSize</td>
<td style="text-align:center">&#x7EB8;&#x5F20;&#x5927;&#x5C0F;&#xFF0C;&#x9009;&#x9879;&#x4E3A;&#x201C;a0&#x201D;&#xFF0C;&#x201C;a1&#x201D;&#xFF0C;&#x201C;a2&#x201D;&#xFF0C;&#x201C;a3&#x201D;&#xFF0C;&#x201C;a4&#x201D;&#xFF0C;&#x201C;a5&#x201D;&#xFF0C;&#x201C;a6&#x201D;&#xFF0C;&#x201C;b0&#x201D;&#xFF0C;&#x201C;b1&#x201D;&#xFF0C;&#x201C;b2&#x201D;&#xFF0C;&#x201C;b3&#x201D;&#xFF0C;&apos;b4&apos;&#xFF0C;&apos;b5&apos;&#xFF0C;&apos;b6&apos;&#xFF0C;&apos;legal&apos;&#xFF0C;&apos;letter&apos;&apos;(&#x9ED8;&#x8BA4;&#x4E3A;&apos;a4&apos;)</td>
</tr>
<tr>
<td style="text-align:center">pdf.margin.top</td>
<td style="text-align:center">&#x9876;&#x90E8;&#x8FB9;&#x8DDD;&#xFF08;&#x9ED8;&#x8BA4;&#x4E3A;&#x201C;56&#x201D;&#xFF09;</td>
</tr>
<tr>
<td style="text-align:center">pdf.margin.bottom</td>
<td style="text-align:center">&#x5E95;&#x90E8;&#x8FB9;&#x8DDD;&#xFF08;&#x9ED8;&#x8BA4;&#x4E3A;&#x201C;56&#x201D;&#xFF09;</td>
</tr>
<tr>
<td style="text-align:center">pdf.margin.right</td>
<td style="text-align:center">&#x53F3;&#x8FB9;&#x8DDD;&#xFF08;&#x9ED8;&#x8BA4;&#x4E3A;&#x201C;62&#x201D;&#xFF09;</td>
</tr>
<tr>
<td style="text-align:center">pdf.margin.left</td>
<td style="text-align:center">&#x5DE6;&#x8FB9;&#x8DDD;&#xFF08;&#x9ED8;&#x8BA4;&#x4E3A;&#x201C;62&#x201D;&#xFF09;</td>
</tr>
</tbody>
</table>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="4-menu.html" class="navigation navigation-prev " aria-label="Previous page: 4.菜单">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="6-words.html" class="navigation navigation-next " aria-label="Next page: 6.词汇表">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"5.设置","level":"1.2.2","depth":2,"next":{"title":"6.词汇表","level":"1.2.3","depth":2,"path":"docs/6-words.md","ref":"./docs/6-words.md","articles":[]},"previous":{"title":"4.菜单","level":"1.2.1","depth":2,"path":"docs/4-menu.md","ref":"./docs/4-menu.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":[],"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"docs/5-set.md","mtime":"2020-07-09T09:48:22.007Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2020-07-13T08:21:17.520Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

